#!/usr/bin/python
# -*- coding: utf-8 -*-
import os

import rospy

from ros_mqtt.mqtt_receiver import AttributeReceiver


def main():
    try:
        NODE_NAME = os.path.basename(__file__)
        rospy.init_node(NODE_NAME)
        rospy.loginfo('Start node : %s'%NODE_NAME)
        receiver = AttributeReceiver(NODE_NAME)
        receiver.connect().start()
    except rospy.ROSInterruptException:
        pass


if __name__ == '__main__':
    main()
